<center><img src="motorista.png"/></center><br /><br />
<fieldset>
    <form action="nome_mot.php" method="POST">
        <label for="nome"><b>Nome Completo*</b></label><br />  <br />
        <input type="text" name="nome" id="nome" size="40" style="text-transform:uppercase;" /><br /><br />
        <input type="submit" value="Cadastrar"/>
        <input type="button" value="Limpar" onclick="javascript:window.history.go(0)"/>
        <input type="hidden" name="id" id="id" value="0">
    </form>
    <fieldset style="float: right; width: 20%; margin-top: -8%; margin-right: 0%">
        <legend><h3>Motoristas Cadastrados</h3></legend>
        <div name="div_cadastros" id="div_cadastros" style="overflow: scroll; overflow-x: hidden">
            <?php
            $query = "SELECT nome, id FROM motorista WHERE bloqueado = 0";
            $result = mysql_query($query);
            echo "<table>";
            while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
                echo '<tr style="border-bottom: 1px solid black">
                    <td>' . $row["nome"] . '</td>
                    <td><img src="./imagens/usuario_edit.png" onclick="document.getElementById(\'id\').value =' . $row["id"] . ';Execedicao(\'motorista\',\'' . $row["id"] . '\')"/></td>
                    <td><img src="./imagens/usuario_del.png" onclick="delecao(\'motorista\',\'' . $row["id"] . '\')"/></td>
                       
            </tr>';
            }
            echo "</table>";
            ?>

        </div>
    </fieldset>
</fieldset>
